package cc.vicp.djx314.starfood.quartz;

import org.springframework.beans.factory.annotation.Autowired;

import cc.vicp.djx314.starfood.service.order.CurrentOrder;

public class RemoveOldCurrnetOrder {
	@Autowired
	CurrentOrder currentOrder;

	private Integer minutes;

	public void removeOldCurrnetOrder() {
		currentOrder.removeCurrentOrderByTime(minutes);
	}

	public void setMinutes(Integer minutes) {
		this.minutes = minutes;
	}
}